package com.zifeng.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zifeng.common.Query;
import com.zifeng.dao.UserPraiseDao;
import com.zifeng.pojo.UserPraise;
import com.zifeng.service.IUserPraiseService;
import com.zifeng.utils.PageUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 船舶用户收藏Service业务层处理
 * 
 * @author zifeng
 * @date 2025-03-27
 */
@Service("userPraiseService")
public class UserPraiseServiceImpl extends ServiceImpl<UserPraiseDao, UserPraise> implements IUserPraiseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserPraise> page = this.page(
                new Query<UserPraise>().getPage(params),
                new QueryWrapper<UserPraise>()
        );

        return new PageUtils(page);
    }

}
